package com.orchid.community.models.mapper;

import com.orchid.community.models.DTO.ApplyDTO;
import com.orchid.community.models.DTO.MissionDto;
import com.orchid.community.models.DTO.MissionParam;
import com.orchid.community.models.DTO.MissionRequestDTO;
import com.orchid.community.models.entity.Apply;
import com.orchid.community.models.entity.Mission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MissionMapper {
    List<String> getSceneTags();

    int addMission(Mission mission);

    List<MissionRequestDTO> getMissionPage(@Param("param") MissionParam param);

    Mission selectByPrimaryKey(String id);

    int editMission(Mission mission);

    List<Mission> getMissionList(@Param("param") MissionParam param);


    List<ApplyDTO> getApplyList(MissionParam param);
}
